package com.hubox.vo;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class UserStatusVo {

    @NotBlank(message = "username must not be blank!")
    private String username;

    @Valid //嵌套对象校验，需要加上此注解
    @NotNull(message = "status must not be null!")
    private Status status;

    @Valid //嵌套对象校验，需要加上此注解
    @NotEmpty(message = "statusList must not be null!")
    private List<Status> statusList;

}
